package com.sky.entity;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class Coupon implements Serializable {

    private static final long serialVersionUID = 1L;

    private Long id;

    //优惠券名
    private String name;

    //类型
    private Integer type;

    // 金額
    private BigDecimal amount;

    //类型
    private Integer account;

    // 状态 0:禁用 1:可用
    private Integer state;

    //创建人ID
    private Long createUser;

    //创建时间
    private LocalDateTime createTime;

}
